package com.team5101.service;

import com.team5101.dao.IDetailOrderDao;
import com.team5101.dao.IOrderDao;
import com.team5101.entity.AllOrderDTO;
import com.team5101.entity.DetailOrder;
import com.team5101.entity.Order;
import com.team5101.utils.CreateCodeUtil;
import com.team5101.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/*对订单信息的业务逻辑操作*/
@Service
public interface IOrderService {

    /*生成一个订单*/
    public R saveAllOrder(AllOrderDTO allOrder);

    /*获取一个订单的基本信息+详细信息*/
     public R queryAllOrder(String orderCode);

     /*查询订单列表信息*/
    public R queryAllOrderList(Order order);

    /*根据订单编号查询订单的基本信息*/
    public Order queryOrderByOrderCode(String orderCode);

    /*根据订单的编号查出电影数据的信息*/
    public  DetailOrder queryDetailOrderByOrderCode(String orderCode);
}
